import QtQuick 2.0
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12

RowLayout{
    property var rowColInfo: null

    Label{
        text: qsTr("UnitRowIndex:")
    }
    TextField{
        selectByMouse: true
        validator: IntValidator{}
        implicitWidth: 60
        text: rowColInfo.unitRow
        onEditingFinished: {
            rowColInfo.unitRow = text
        }
    }

    Label{
        text: qsTr("UnitColumnIndex:")
    }
    TextField{
        selectByMouse: true
        validator: IntValidator{}
        implicitWidth: 60
        text: rowColInfo.unitColumn
        onEditingFinished: {
            rowColInfo.unitColumn = text
        }
    }

    Label{
        text: qsTr("RowIndexInsideUnit:")
    }
    TextField{
        selectByMouse: true
        validator: IntValidator{}
        implicitWidth: 60
        text: rowColInfo.row
        onEditingFinished: {
            rowColInfo.row = text
        }
    }

    Label{
        text: qsTr("ColumnIndexInsideUnit:")
    }
    TextField{
        selectByMouse: true
        validator: IntValidator{}
        implicitWidth: 60
        text: rowColInfo.column
        onEditingFinished: {
            rowColInfo.column = text
        }
    }
}
